import request from '@/util/request'
import { dealOpts, FIRM } from './../api_type'

// 消息
const userGetMsg = (params, opts) => {
  return request.get(dealOpts(FIRM + '/getMyMessageCount'), params)
}

const userGetMsgList = (params, opts) => {
  return request.get(dealOpts(FIRM + '/getMyMessages'), params)
}

const userReadMessages = (params, opts) => {
  return request.get(dealOpts(FIRM + '/readMessages'), params)
}

export default {
  // message
  userGetMsg,
  userGetMsgList,
  userReadMessages
}
